/**
 * 项目名称:捕捉throw抛出的异常
 *
 * @Author: 夏国倩
 * @Date: 2023/9/15 14:18
 * @Copyright
 */
package Exception;
public class Exception7Test {
    public static void main(String[] args) {
        Exception7 exception7=new Exception7();
        try{
            exception7.setSex("Male");
            exception7.print();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
